package com.ytjj.qmyx.admin.service;

import com.ytjj.common.api.CommonPage;
import com.ytjj.qmyx.admin.model.Admin;
import com.ytjj.qmyx.admin.model.ComplaintsRegistration;
import com.ytjj.qmyx.admin.model.request.complaints.ComplaintsRegistrationRequest;
import com.ytjj.qmyx.admin.model.response.complaints.ComplaintsRegistrationResponse;
import com.ytjj.qmyx.mall.model.ComplaintsRecords;
import com.ytjj.qmyx.mall.model.WxComplaintsListRequest;
import com.ytjj.qmyx.mall.model.WxComplaintsListResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface WxComplaintsService {
    /**
     * 微信投诉列表
     * @param request
     * @return
     */
    CommonPage<WxComplaintsListResponse> wxComplaintsV3List(WxComplaintsListRequest request);

    /**
     * 保存客服需登记信息
     * @param request
     * @return
     */
    Integer saveComplaintsRegistration(ComplaintsRegistrationRequest request, Admin admin);

    /**
     * 上传微信投诉照片
     * @param file
     * @return
     */
    Map<String,String> getImgUrl(MultipartFile file,String complaintId)throws Exception;

    /**
     *根据投诉单号id查看投诉客服登记信息
     * @param complaintId
     * @return
     */
    List<ComplaintsRegistrationResponse> queryComplaintsRegistration(String complaintId);

    /**
     * 根据支付单号查询投诉信息
     * @param tradeNo
     * @return
     */
    ComplaintsRecords queryByTradeNo(String tradeNo);
}
